import request from '../utils/request';

//发送获取商品分类请求
export const getGoodsTypes = query => {
    return request({
        url: 'goodsmanage/getGoodsTypeS',
        method: 'post',
        params: query
    });
};

//发送获取商品一级分类请求
export const getclassify = query => {
    return request({
        url: 'goodsmanage/getclassify',
        method: 'get',
        params: query
    });
};

//修改分类数据请求
export const updateGoodsType = query => {
    return request({
        url: 'goodsmanage/updateGoodsType',
        method: 'post',
        params: query
    });
};

//删除分类请求
export const deleteGoodsTypeS = query => {
    return request({
        url: 'goodsmanage/deleteGoodsTypeS',
        method: 'post',
        params: query
    });
};

//新增分类请求
export const addGoodsType = query => {
    return request({
        url: 'goodsmanage/addGoodsType',
        method: 'post',
        params: query
    });
};